Skip to content

ci(github-backup): wire the regression suite into a workflow (#5937) - #5938

Merged
dezren39 merged 1 commit into
mainfrom
queue/9835-5937-github-backup-ci
Nov 5, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/9835-5937-github-backup-ci

Conversation

@dezren39

@dezren39 dezren39 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Closes #5937

What

Adds .github/workflows/github-backup-tests.yml, wiring the infra/github-backup regression suite (10 files, ~250 checks over clone/reconcile/drain/deploy safety) into CI. Until now no workflow enumerated the suite and the README named no CI runner, so it executed only when a human remembered.

How

  • Dispatch-triggered, matching the house pattern since 5a94833 (push/pull_request triggers removed repo-wide).
  • Runs every infra/github-backup/tests/test_*.py file as a script and fails the job if any file exits non-zero. The three test_deploy_*.py modules execute their checks at import time and end in sys.exit at module level, so python3 -m unittest discover errors on them (errors=3) instead of running them; file-by-file script execution is also how the modules document their own invocation.
  • The step counts the files it ran and fails if the glob matched nothing — a green run can never be a silently skipped suite.
  • Provisions Python 3.12 and Node 24: the deploy tests drive the real deploy.mjs with stubbed bws/wrangler/git executables; the other tests use the real git CLI the runner provides.
  • README tests/ row now names the workflow as the CI runner.
  • No behaviour change to infra/github-backup/bin/*, worker/*, or the systemd units (diff is the new workflow + one README line).

Verification

  • Laptop, suite run exactly as the workflow runs it: all 10 files pass (clone_all_partial pass, clone_all_references 4/4, deploy_dry_run 11/11, deploy_rollback_version 16/16, deploy_unknown_args 53/53, drain_queue 82/82, fetch_mirrors OK, inventory_owner 18/18, reconcile_clone_pass 9/9, reconcile_retention 9/9).
  • Oracle / failure propagation: a negative test with one deliberately failing file confirms the step logic reports the failure (fail=1) and still runs the remaining files — the oracle is each script's own exit code, aggregated, with a non-empty-suite guard.
  • Post-merge: dispatch the workflow on main to confirm the full suite passes under the workflow's Python 3.12.

Queue: task 9835 (repo-health-code-pilot), lane code-s.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The infra/github-backup regression suite (10 files, ~250 checks over clone/reconcile/drain/deploy safety) was enumerated by no workflow and had no documented CI runner, so it ran only when a human remembered.

Add .github/workflows/github-backup-tests.yml (dispatch-triggered, matching the house pattern since 5a94833): runs every tests/test_*.py file as a script and fails if any file exits non-zero. The three test_deploy_*.py modules execute at import time and end in sys.exit, so unittest discover errors on them; running the suite file-by-file as scripts covers all 10 files. The step also fails if the glob matches nothing, so a green run cannot be a silently skipped suite. Node is provisioned because the deploy tests drive deploy.mjs.

Verified on the laptop: all 10 files pass as scripts; a negative test (one deliberately failing file) confirms the step fails and still runs the remaining files. README tests/ row now names the workflow as the CI runner.
@dezren39
dezren39 requested a review from a team as a code owner November 5, 2026 03:44
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 47aa74fc-7635-44fd-a75c-8d400688ae97
Commits

Reviewing files that changed from the base of the PR and between 1cf7016 and 316b854.

Files selected for processing: 2

  • .github/workflows/github-backup-tests.yml
  • infra/github-backup/README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T03:46:28.005105Z 316b854 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(github-backup): the infra/github-backup regression suite (10 files, ~250 checks) is run by no workflow

1 participant